package ewms.domain;

import ewms.common.core.domain.TreeSelect;

import java.util.stream.Collectors;

public class EwmsWasteTypeTreeSelect extends TreeSelect {

	public EwmsWasteTypeTreeSelect(EwmsWasteType wasteType) {
		super(wasteType.getWasteTypeId(), wasteType.getWasteTypeName(), wasteType.isDisabled(), wasteType.getChildren().stream().map(EwmsWasteTypeTreeSelect::new).collect(Collectors.toList()));
	}
}
